home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / src / adoc_src.lha / adoc-0.17 / adoc.h next >
Encoding:
C/C++ Source or Header  |  1995-03-20  |  2.5 KB  |  88 lines

  1. /*                                                               -*- C -*-
  2.  *  ADOC.H
  3.  *
  4.  *  (c)Copyright 1995 by Tobias Ferber,  All Rights Reserved
  5.  *
  6.  *  This file is part of ADOC.
  7.  *
  8.  *  ADOC is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published
  10.  *  by the Free Software Foundation; either version 1 of the License,
  11.  *  or (at your option) any later version.
  12.  *
  13.  *  ADOC is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with this program; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. /* $VER: $Id: adoc.h,v 1.7 1995/03/20 18:44:08 tf Exp $ */
  24.  
  25. #ifndef ADOC_H
  26. #define ADOC_H
  27.  
  28. #include <stdio.h>
  29.  
  30. /* prototypes */
  31.  
  32. #if defined(__cplusplus) || defined(cplusplus)
  33. extern "C" {
  34. #endif
  35.  
  36. /* args.c */
  37. extern char *convert_args(char *);
  38. extern void display_args(void);
  39.  
  40. /* strarg.c */
  41. extern int strarg(char *key, ...);
  42.  
  43. /* strexpand.c */
  44. extern char *strexpand(char *, char **);
  45.  
  46. /* gencode.c */
  47. extern int gen_autodoc_toc(FILE *fp);
  48. extern int gen_autodoc(FILE *fp, int cols, int tabsize, int flags, char **body_macros);
  49. extern int gen_texinfo_header(FILE *fp, char *fname, char **header_macros);
  50. extern int gen_texinfo(FILE *fp, int tabsize, int flags, char *body_environment, char **body_macros);
  51.  
  52. /* adoc.yy */
  53. extern int read_source(char *, int);
  54.  
  55. /* main.c */
  56. extern FILE *get_ferr(void);
  57.  
  58.  
  59. /* flags for the texinfo code generator */
  60.  
  61. #define TEXI_GROUP_SECTIONS      (1<<0)
  62. #define TEXI_FUNCTION_NEWPAGE    (1<<1)
  63. #define TEXI_PARSE_REFERENCES    (1<<2)
  64. #define TEXI_ITEMIZE_REFERENCES  (1<<3)
  65. #define TEXI_CREATE_HEADER       (1<<4)
  66. #define TEXI_TABLE_FUNCTIONS     (1<<5)
  67.  
  68. /* flags for the autodoc code generator */
  69.  
  70. #define ADOC_FORM_FEEDS          (1<<0)
  71.  
  72. /* initially `warn_mask' is set to WARN_NORMAL, so importatnt warnings are visible */
  73.  
  74. #define WARN_NORMAL              (1<<0)
  75. #define WARN_BROKEN_COMMENTS     (1<<0)
  76. #define WARN_STRANGE_TEXT        (1<<0)
  77. #define WARN_UNKNOWN_KEYWORDS    (1<<1)
  78. #define WARN_MISSING_KEYWORDS    (1<<2)
  79.  
  80. #define WARN_ALL                 (~0)
  81. #define WARN_NONE                (0)
  82.  
  83. #if defined(__cplusplus) || defined(cplusplus)
  84. }
  85. #endif /* C++ */
  86.  
  87. #endif /* !ADOC_H */
  88.